package com.etc.service.impl;

import com.etc.dao.UserDao;
import com.etc.entity.User;
import com.etc.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author kalista
 * @Description
 * @Date 2021/1/2  15:08
 **/
@Service
public class UserServicelmpl implements IUserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User findById(Integer uId) {
        return userDao.findById(uId);
    }


    @Override
    public List<User> finduser() {
      return userDao.findAll();
    }
}
